<?php
/*
 +----------------------------------------------------------------------
 + Title        : RateLimit 控制器
 + Author       : Randy_chen
 + Version      : V1.0.0.1
 + Initial-Time : 2020/5/6 11:59
 + Last-time    : 2020/5/6 11:59+ 86187
 + Desc         : RateLimit
 +----------------------------------------------------------------------
*/


namespace myAnnotation\Annotation;

use Doctrine\Common\Annotations\Annotation\Target;
use Doctrine\Common\Annotations\Annotation;

/**
 * @Annotation
 * @Target("METHOD")
 */
class RateLimit {

    /**
     * 处理类句柄
     *
     * @var string
     */
    public $handle = \myAnnotation\rules\RateLimitRule::class;

    /**
     * 用户限流数
     *
     * @var int
     */
    public $userLimit = 10;

    /**
     * ip限流数
     *
     * @var int
     */
    public $ipLimit = 10;

    /**
     * 限流场景配
     *
     * @var string
     */
    public $scene = 'ip,user';

}